import Vue from 'vue'
import Vuex from 'vuex'
//数据持久化
import createPersistedState from "vuex-persistedstate";
Vue.use(Vuex)

const store = new Vuex.Store({
    state () {
        return {
            routes:''
        }
    },
    mutations: {
        ADD_ROUTER (state,data) {
            state.routes=data
        }
    }
})
export default store